package com.weitu.permission.authority.service.impl;

/**
 * Created by WT on 2017/3/18.
 */
import com.weitu.permission.authority.entity.AuthorityGroup;
import com.weitu.permission.authority.mapper.AuthorityGroupMapper;
import com.weitu.permission.authority.service.AuthorityGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class AuthorityGroupServiceImpl implements AuthorityGroupService {

    private final AuthorityGroupMapper authorityGroupMapper;

    @Autowired
    public AuthorityGroupServiceImpl(AuthorityGroupMapper authorityGroupMapper) {
        this.authorityGroupMapper = authorityGroupMapper;
    }

    @Override
    public AuthorityGroup selectAuthorityGroupById(String id) {
        return authorityGroupMapper.selectAuthorityGroupById(id);
    }

    @Override
    public AuthorityGroup selectAuthorityGroupByCode(String Code) {
        return authorityGroupMapper.selectAuthorityGroupByCode(Code);
    }

    @Override
    public int deleteById(String id) {
        return authorityGroupMapper.deleteById(id);
    }

    @Override
    public int insert(AuthorityGroup authorityGroup) {
        return authorityGroupMapper.insert(authorityGroup);
    }

    @Override
    public int insertSelective(AuthorityGroup authorityGroup) {
        return authorityGroupMapper.insertSelective(authorityGroup);
    }

    @Override
    public int updateByIdSelective(AuthorityGroup authorityGroup) {
        return authorityGroupMapper.updateByIdSelective(authorityGroup);
    }

    @Override
    public List<AuthorityGroup> queryList(Map map) {
        return authorityGroupMapper.queryList(map);
    }

    @Override
    public List<AuthorityGroup> getAuthorityGroupList(){
        return authorityGroupMapper.getAuthorityGroupList();
    }

    @Override
    public int queryCount(Map map) {
        return authorityGroupMapper.queryCount(map);
    }

}
